package com.he.domain.dto;


import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;


/**
 * @author He
 * @version 1.0
 * @Date 2023/10/8 13:35
 * @Desc 分类DTO
 */
@Data
@Schema(description = "分类DTO")
public class CategoryDTO {

    /**
     * 分类id
     */
    @Schema(description = "分类id")
    private Integer id;

    /**
     * 分类名
     */
    @NotBlank(message = "分类名不能为空")
    @Schema(description = "分类名")
    private String categoryName;

}
